import yaml
from autoTest_BRTC_API.utils.get_path import get_yaml_path

def write_yaml(fileanme,content):
    file_path=get_yaml_path(fileanme)
    with open(file_path,'w',encoding='utf-8') as f:
        yaml.safe_dump(content,f,default_flow_style=False,allow_unicode=True)



if __name__ == '__main__':
    content={'userId':'127',
             'token':'123'
    }
    write_yaml('temp.yaml',content)